import java.util.*;
import java.io.*;

public class FileTime {
	static ArrayList<String> filelist = new ArrayList<String>(); 
	  
	public static void refreshFileList(String strPath) { 
        File dir = new File(strPath); 
        File[] files = dir.listFiles(); 
        
        if (files == null) 
            return; 
        for (int i = 0; i < files.length; i++) { 
            if (files[i].isDirectory()) { 
            	 filelist.add(files[i].getAbsolutePath());
                refreshFileList(files[i].getAbsolutePath()); 
            } else { 
//                String strFileName = files[i].getAbsolutePath().toLowerCase();
//                System.out.println("---"+strFileName);
                filelist.add(files[i].getAbsolutePath());                    
            } 
        } 
    }
	
	public static void main(String[] args) {
		Calendar cal = Calendar.getInstance();
		long t = System.currentTimeMillis()-86400000*5;
		refreshFileList("e:/s");
		for (int i = 0; i < filelist.size(); i++) {
			File f = new File(filelist.get(i));
			long time = f.lastModified();
			if(time>t){
				System.out.println(filelist.get(i));
				System.out.println(cal.getTime().toLocaleString());
				f.setLastModified(t);
			}
			
		}
	}
}